/**
 * @Question BMICalculator
 * @Date 2023/3/16 16:22
 * @Solution
 */
public class BMICalculator {
    public static void main(String[] args) {
        double bmi=Double.parseDouble(args[0])/Math.pow(Double.parseDouble(args[1]),2);
        System.out.println("Your weight:"+args[0]);
        StringBuffer stringBuffer=new StringBuffer("175");
        stringBuffer.insert(1,".");
        System.out.println(stringBuffer);
        System.out.println("Your height:"+stringBuffer+" m");
        System.out.println("Your BMI:"+bmi);
        if(bmi<18.5) {
            System.out.println("You are in the Underweight range.");
        } else if(bmi>=18.5&&bmi<=24.9) {
            System.out.println("You are in the Normal range.");
        } else if(bmi>=25 && bmi<=29.9) {
            System.out.println("You are in the Overweight range.");
        } else if(bmi>=30) {
            System.out.println("You are in the Obese range.");
        }
    }
}
